﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BenCaoXuan.Infrastructure.Dto.Admin.product
{
    public class Product_Dto
    {
        /// <summary>
        /// 产品id
        /// </summary>
        public string? id { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string? name { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? remark { get; set; }

        /// <summary>
        /// 产品描述
        /// </summary>
        public string? description { get; set; }

        /// <summary>
        /// 产品类型id
        /// </summary>
        public string? type_id { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        public string? category { get; set; }

        /// <summary>
        /// 产品价格
        /// </summary>
        public double? price { get; set; }

        /// <summary>
        /// 产品封面
        /// </summary>
        public string? cover { get; set; }

        public string? allphoto { get; set; }

        /// <summary>
        /// 产品详情图
        /// </summary>
        public List<string>? photo { get; set; }

        /// <summary>
        /// 产品功效
        /// </summary>
        public string? effect { get; set; }

        /// <summary>
        /// 产品注意事项
        /// </summary>
        public string? attention { get; set; }

        public bool isBan { get; set; }

        /// <summary>
        /// 是否是套餐
        /// </summary>
        public int? isGroup { get; set; }

        public string? time { get; set; }

        public List<product_specs> specs { get; set; }

    }

    public class product_specs() {
        /// <summary>
        /// 规格id
        /// </summary>
        public string? id { get; set; }

        /// <summary>
        /// 规格名称
        /// </summary>
        public string? name { get; set; }

        /// <summary>
        /// 规格价格
        /// </summary>
        public double? price { get; set; }
    }
}
